package cn.lisens.modules.file.model;

import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;
import java.util.Map;
import java.io.Serializable;

public class FileUploadParams implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static final String FILEUPLOAD_BASE_URL = "fileupload";
	
	private MultipartFile file;
	
	private String fileUploadId;
    private String fileEntityId;
    private String fileName;
    private String fileExtension;
    private Long size;
    
    private String bizKey;
    private String bizType;
    private String uploadType;
    private String uploadPath;
    private String relativePath;
    
    private String fileMd5;
    private Long maxFileSize;
    
    private Long chunk;
    private Long chunks;
    private Long chunkSize;
    
    private Integer imageMaxWidth;
    private Integer imageMaxHeight;
    private String imageAllowSuffixes;
    private String mediaAllowSuffixes;
    private String fileAllowSuffixes;
    private String allowSuffixes;
    
    private Map<String, String> extend;
    
    public void setBizType(final String bizType) {
        this.bizType = bizType;
    }
    
    public String getRelativePath() {
        return this.relativePath;
    }
    
    public String getImageAllowSuffixes() {
        return this.imageAllowSuffixes;
    }
    
    public void setMaxFileSize(final Long maxFileSize) {
        this.maxFileSize = maxFileSize;
    }
    
    public String getFileName() {
        return this.fileName;
    }
    
    public void setUploadPath(final String uploadPath) {
        this.uploadPath = uploadPath;
    }
    
    public void setUploadType(final String uploadType) {
        this.uploadType = uploadType;
    }
    
    public Integer getImageMaxWidth() {
        return this.imageMaxWidth;
    }
    
    public void setImageMaxWidth(final Integer imageMaxWidth) {
        this.imageMaxWidth = imageMaxWidth;
    }
    
    public void setChunk(final Long chunk) {
        this.chunk = chunk;
    }
    
    public String getUploadPath() {
        return this.uploadPath;
    }
    
    public void setImageMaxHeight(final Integer imageMaxHeight) {
        this.imageMaxHeight = imageMaxHeight;
    }
    
    public void setSize(final Long size) {
        this.size = size;
    }
    
    public String getBizType() {
        return this.bizType;
    }
    
    public MultipartFile getFile() {
        return this.file;
    }
    
    public String getMediaAllowSuffixes() {
        return this.mediaAllowSuffixes;
    }
    
    public void setMediaAllowSuffixes(final String mediaAllowSuffixes) {
        this.mediaAllowSuffixes = mediaAllowSuffixes;
    }
    
    public void setImageAllowSuffixes(final String imageAllowSuffixes) {
        this.imageAllowSuffixes = imageAllowSuffixes;
    }
    
    public String getFileUploadId() {
        return this.fileUploadId;
    }
    
    public Long getChunkSize() {
        return this.chunkSize;
    }
    
    public String getFileAllowSuffixes() {
        return this.fileAllowSuffixes;
    }
    
    public String getBizKey() {
        return this.bizKey;
    }
    
    public String getFileEntityId() {
        return this.fileEntityId;
    }
    
    public void setExtend(final Map<String, String> extend) {
        this.extend = extend;
    }
    
    public void setChunks(final Long chunks) {
        this.chunks = chunks;
    }
    
    public FileUploadParams() {
        final int i = -1;
        final int j = -1;
        this.imageMaxWidth = j;
        this.imageMaxHeight = i;
        this.extend = new HashMap<String, String>();
    }
    
    public Long getChunk() {
        return this.chunk;
    }
    
    public void setFileEntityId(final String fileEntityId) {
        this.fileEntityId = fileEntityId;
    }
    
    public String getAllowSuffixes() {
        return this.allowSuffixes;
    }
    
    public String getUploadType() {
        return this.uploadType;
    }
    
    public void setFileExtension(final String fileExtension) {
        this.fileExtension = fileExtension;
    }
    
    public Long getChunks() {
        return this.chunks;
    }
    
    public Long getMaxFileSize() {
        return this.maxFileSize;
    }
    
    public Long getSize() {
        return this.size;
    }
    
    public String getFileExtension() {
        return this.fileExtension;
    }
    
    public String getFileMd5() {
        return this.fileMd5;
    }
    
    public void setFileAllowSuffixes(final String fileAllowSuffixes) {
        this.fileAllowSuffixes = fileAllowSuffixes;
    }
    
    public void setAllowSuffixes(final String allowSuffixes) {
        this.allowSuffixes = allowSuffixes;
    }
    
    public void setChunkSize(final Long chunkSize) {
        this.chunkSize = chunkSize;
    }
    
    public Integer getImageMaxHeight() {
        return this.imageMaxHeight;
    }
    
    public void setFileUploadId(final String fileUploadId) {
        this.fileUploadId = fileUploadId;
    }
    
    public void setFileName(final String fileName) {
        this.fileName = fileName;
    }
    
    
    public Map<String, String> getExtend() {
        return this.extend;
    }
    
    public void setRelativePath(final String relativePath) {
        this.relativePath = relativePath;
    }
    
    public void setFileMd5(final String fileMd5) {
        this.fileMd5 = fileMd5;
    }
    
    public void setBizKey(final String bizKey) {
        this.bizKey = bizKey;
    }
    
    public void setFile(final MultipartFile file) {
        this.file = file;
    }
}
